package cn.initcap.concurrency.concurrency.singleton;

import cn.initcap.concurrency.annoations.ThreadSafe;

/**
 * 饿汉模式
 *
 * @author initcap
 * @date Created in 2018/6/14 PM12:32.
 */
@ThreadSafe
public class SingletonHungry {

    private static SingletonHungry instance = new SingletonHungry();

    private SingletonHungry() {

    }

    public static SingletonHungry getInstance() {
        return instance;
    }

}
